from django.conf.urls.defaults import *
from app.view import index, register, login, check_user_availability
import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
                       (r'^$',index),
                       (r'^user/register/$',register),
                       (r'^user/login/$',login),
                       (r'^users/check_user_availability/$',check_user_availability),
                       (r'media/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.ADMIN_MEDIA_PREFIX}),
    # Example:
    # (r'^coolpai/', include('coolpai.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)
